#include "list.h"
using namespace lj;
int main()
{
	test_list1();

	return 0;
}

void test_list1()
{
	list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);

	list<int>::iterator it = lt.begin();
	while (it != lt.end())
	{
		*it += 10;
		cout << *it << " ";
		++it;
	}
	cout << endl;

	/*lt.push_front(10);
	lt.push_front(20);
	lt.push_front(30);

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;

	lt.pop_back();
	lt.pop_back();
	lt.pop_front();
	lt.pop_front();

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;*/
}